package com.dao;


import com.model.Advertisement;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface AdvertisementMapper {

//   insert  查询select,修改update,删除delete

    int insert(Advertisement record);

    int deleteByPrimaryKey(Long id);

    int deleteByPrimaryKeys(Long[] ids);


    long insertSelective(Advertisement record);

    Map selectByPrimaryKeyMap(Long id);
    Advertisement selectByPrimaryKey(Long id);

//    int updateByPrimaryKeySelective(Advertisement record);

    int updateByPrimaryKeyWithBLOBs(Advertisement record);

    int updateByPrimaryKey(Advertisement record);


    List<Advertisement> selectAll(Advertisement advertisement);



}